package cn.mjnxin.charge.model.entity;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
/**
 * demo_love_discuss_user:讨论表和用户表中间表
 * create by :clg  2023/8/29
 *
 * @mbg.generated
 */
public class DemoLoveDiscussUser implements Serializable {
    /**
     * id
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="id")
    private Integer id;

    /**
     * 讨论id
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="讨论id")
    private Integer discussId;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="用户id")
    private Integer userId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDiscussId() {
        return discussId;
    }

    public void setDiscussId(Integer discussId) {
        this.discussId = discussId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", discussId=").append(discussId);
        sb.append(", userId=").append(userId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemoLoveDiscussUser other = (DemoLoveDiscussUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDiscussId() == null ? other.getDiscussId() == null : this.getDiscussId().equals(other.getDiscussId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDiscussId() == null) ? 0 : getDiscussId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        return result;
    }
}